//
//  AYMFocusDoctorTableViewCell.m
//  QuickCure
//
//  Created by xuNick on 16/5/6.
//  Copyright © 2016年 ayumi. All rights reserved.
//

#import "AYMFocusDoctorTableViewCell.h"

#import "AYMFocusDoctorModel.h"

@interface AYMFocusDoctorTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *ImgeView_icon;
@property (weak, nonatomic) IBOutlet UILabel *label_name;
@property (weak, nonatomic) IBOutlet UILabel *label_titlename;
@property (weak, nonatomic) IBOutlet UILabel *label_hospatalName;
@property (weak, nonatomic) IBOutlet UIButton *button_operation_count;
@property (weak, nonatomic) IBOutlet UIButton *button_flower;
@property (weak, nonatomic) IBOutlet UIButton *button_banner;


@end

@implementation AYMFocusDoctorTableViewCell

- (void)awakeFromNib {
    // Initialization code
}
-(void)setModel:(AYMFocusDoctorModel *)model{
    //设置各个控件的属性
   _model = model;
    
#warning 图片不正确,暂用
    [self.ImgeView_icon sd_setImageWithURL:[NSURL URLWithString:@"http://www.775855.cn/uploads/allimg/c141127/141FX06233460-2522T.jpg"] placeholderImage:[UIImage imageNamed:@"content_img_01"] ];
    
    self.label_name.text = model.doctor_name;
    self.label_titlename.text = model.doctor_title_name;
    self.label_hospatalName.text = model.hospital_name;
    [self.button_operation_count setTitle:model.operation_count forState:UIControlStateNormal];
    [self.button_flower setTitle:model.flower forState:UIControlStateNormal];
    [self.button_banner setTitle:model.banner forState:UIControlStateNormal];
}
- (IBAction)detailButtonClick:(id)sender {
    //通知控制器,弹出详情页
    self.PushDetailVC();
}


@end
